home *** CD-ROM | disk | FTP | other *** search
- /*
- File: CommonResources.h
-
- Contains: All of the custom resources (except errors) for used
- by the files in "Common" folder.
- "Include"able in .r and .cp files.
-
- Written by: Tim Harnett
-
- Copyright: © 1994 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- <3> 2/21/95 TMH metrowerks changes, add func prototype
- <2> 11/2/94 TMH added filename to file resource
- <1> 9/27/94 TMH new 'fldr' and 'file' resources
- 9/23/94 TMH xxx put comment here xxx
-
- To Do:
- */
-
- #ifndef __CommonResources__
- #define __CommonResources__
-
-
- //--------------------------------------------------------------------------
- // 'fldr' Resources.
- //
- // Used to define a full path of a folder.
- // Notes: 1. The folder parent values are taken from CIncludes:Folders.h
- // I invented 'root' this means at the root.
- //
- //--------------------------------------------------------------------------
-
-
- #define kMaxPathnameLen 255
- #define kMaxPathLevels 20
-
-
- #ifdef REZ
- type 'fldr' {
- literal longint rootFolder = 'root',
- systemFolderType = 'macs',
- desktopFolderType ='desk',
- startupFolderType = 'strt',
- appleMenuFolderType ='amnu',
- controlPanelFolderType ='ctrl',
- extensionFolderType = 'extn',
- preferencesFolderType ='pref',
- temporaryFolderType ='temp';
- cstring ; //pathname
-
- };
- #endif
-
-
- #ifndef REZ
-
- //--------------------
- // 'C' structure
- //--------------------
-
- struct FolderSpecResource { // for 'fldr' resources
- OSType folderParentType;
- char folderPath[kMaxPathnameLen];
- };
- typedef struct FolderSpecResource FolderSpecResource;
-
- #endif
-
-
-
- //--------------------------------------------------------------------------
- // 'file' Resources.
- //
- // Used to define a stuff used to create a file
- //
- //--------------------------------------------------------------------------
-
- #ifdef REZ
- type 'file' {
- literal longint; // file creator
- literal longint; // file type
- pstring; // file Name
- };
- #endif
-
-
- #ifndef REZ
-
- //--------------------
- // 'C' structure
- //--------------------
-
- struct FileSpecResource {
- OSType fileCreator;
- OSType fileType;
- Str63 filename;
- };
- typedef struct FileSpecResource FileSpecResource;
-
- #endif
-
-
- #endif __CommonResources__